package com.qunar.support.service;

import com.qunar.support.dao.LoginLogDao;
import com.qunar.support.dao.UserDao;

public class UserService {
	public int login(String username,String password,String ip){
		UserDao ud=new UserDao();
		LoginLogDao lld=new LoginLogDao();
		int  uid=ud.validate(username, password);
		lld.logLogin(uid, ip);
		ud.overdueDay(uid);
		return uid;
	}
}
